package com.example.service;

import com.example.pojo.Category;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface CategoryService {

    List<Category> list();

    void AddCategory(Category category);

    void updateCategory(Category category);

    Category GetCategoryById(Integer id);

    void deleteCategoryById(Integer id);

    void exportData(HttpServletResponse response);

//    void importData(MultipartFile file);


    /**
     * Stu
     *
     * @return
     */
    List<Category> findAll();

    String findCategoryName(Integer id);

    void exportData1(HttpServletResponse response);

}
